# -*- coding: utf-8 -*-
# @Time    : 2021/4/14 18:35
# @Author  : Zhangrenjie
# @Email   : zhangrenjie1998@163.com
# @File    : main.py
# @Software: PyCharm
from pack import zhangrenjie

while True:
    N = input("请输入数字：")
    if zhangrenjie.check_input(N):
        break

filename = input("请输入文件名")
code_list = zhangrenjie.create_code(int(N))
zhangrenjie.write_file(filename, code_list)

print(help(zhangrenjie.write_file))